﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="StoreWeb.system.Right.edit" %>

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="../../lib/html5.js"></script>
<script type="text/javascript" src="../../lib/respond.min.js"></script>
<script type="text/javascript" src="../../lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="../../css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="../../lib/layer/1.9.3/layer.js"></script>
    <script type="text/javascript" src="../../lib/Validform/5.3.2/Validform.min.js"></script>
    <script type="text/javascript" src="../../lib/laypage/1.2/laypage.js"></script>
    <script type="text/javascript" src="../../lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../../js/H-ui.js"></script>
    <script type="text/javascript" src="../../js/H-ui.admin.js"></script>
    <!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>权限编辑</title>
</head>
<body>
    <div class="pd-20">
        <form runat="server" method="post" class="form form-horizontal" id="formmemberadd">
            <div class="row cl">
                <label class="form-label col-2">上级分类：</label>
                <div class="formControls col-6">
                    <span class="select-box">
                        <asp:DropDownList ID="parentlist" CssClass="select" runat="server"></asp:DropDownList>
                    </span>
                </div>
                <div class="col-4">（不选默认分类）</div>
            </div>
            <div class="row cl">
                <label class="form-label col-2"><span class="c-red">*</span>权限编码：</label>
                <div class="formControls col-6">
                    <input type="text" class="input-text" value="" placeholder="请输入权限编码" id="code" name="code" runat="server" datatype="*" nullmsg="权限编码不能为空">
                </div>
                <div class="col-4"></div>
            </div>
            <div class="row cl">
                <label class="form-label col-2"><span class="c-red">*</span>权限名称：</label>
                <div class="formControls col-6">
                    <input type="text" class="input-text" value="" placeholder="请输入权限名称" id="name" name="name" runat="server" datatype="*" nullmsg="权限名称不能为空">
                </div>
                <div class="col-4"></div>
            </div>
            <div class="row cl">
                <label class="form-label col-2">图标：</label>
                <div class="formControls col-6">
                    <input type="text" class="input-text" value="" placeholder="请输入图标代码" id="icon" name="icon" runat="server">
                </div>
                <div class="col-4"></div>
            </div>
            <div class="row cl">
                <label class="form-label col-2">序号：</label>
                <div class="formControls col-6">
                    <input type="text" class="input-text" value="" placeholder="请输入数字" id="sort" name="sort" runat="server" datatype="n" nullmsg="序号不能为空">
                </div>
                <div class="col-4"></div>
            </div>
            <div id="detail" style="display: none">
                <div class="row cl">
                    <label class="form-label col-2">地址：</label>
                    <div class="formControls col-6">
                        <input type="text" class="input-text" value="" placeholder="请输入菜单连接地址" id="url" name="url" runat="server">
                    </div>
                    <div class="col-4"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-2">说明：</label>
                    <div class="formControls col-6">
                        <input type="text" class="input-text" value="" placeholder="请输入说明" id="description" name="description" runat="server">
                    </div>
                    <div class="col-4"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-2"><span class="c-red">*</span>扩展权限：</label>
                    <div class="formControls col-6">
                        <asp:CheckBoxList ID="cklist" runat="server" RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                    </div>
                    <div class="col-4"></div>
                </div>
            </div>
            <div class="row cl">
                <div class="col-10 col-offset-2">
                    <asp:HiddenField ID="hidid" runat="server" />
                    <asp:Button ID="btnok" runat="server" CssClass="btn btn-success radius" Text="确定" OnClick="btnok_Click" />
                </div>
            </div>
        </form>
    </div>

    <script>
        $(function () {
            if ($("#parentlist").val() == "") {
                $("#detail").hide("flow");
            } else {
                $("#detail").show("flow");
            }
            $("#parentlist").change(function () {
                if ($(this).val() == "") {
                    $("#detail").hide("flow");
                } else {
                    $("#detail").show("flow");
                }
            });
            $("#formmemberadd").Validform({
                tiptype: 2
            });
        });
    </script>
</body>
</html>
